﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameSchool.Models;

namespace GameSchool.Tests.Controllers
{
	class MockGameRepository : GameRepository
	{
		List<Game> m_Games = new List<Game>();
		public MockGameRepository(int count)
		{
			for (int i = 0; i < count; i++)
			{
				m_Games.Add(new Game { ID=i+1, Name="Leikur " + (i+1), MaxUser=(50+i), Description="Ég er bara einhver svona pínkuponsu lýsing við leik "+(i+1)});
			}
		}

		public IQueryable<Game> Games()
		{
			return m_Games.AsQueryable();
		}


	}
}
